<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('cambridgeTest')} > ${i18n.getMessage('list')}">
	<a href="#" onclick="pp('study/showReportCambridgeTest.sgt?offeringId=${offering.id}')">${i18n.getMessage('report')}</a>
	- <a href="#" onclick="cc('study/showTestResult.sgt?offeringId=${offering.id}')">${i18n.getMessage('result')}</a>
	- <a href="#" onclick="cc('offering/showInfoOffering.sgt?id=${offering.id}')">${i18n.getMessage('offering')}</a>
</@showTitle>

<br/>

<div id="error" style="display:none"></div>

<form action="study/editCambridgeTest.sgt" validator="study/validateCambridgeTest.sgt" onsubmit="submitFormValidation(this); return false;" onreset="$('error').hide()">
	<input type="hidden" name="offeringId" value="${offering.id}"/>
	
	<@display.table id="listTable" name="offeringMembers">
		<@display.column title="${i18n.getMessage('ordinalNumber')}" style="text-align:center">${listTable_rowNum}</@display.column>
		<@display.column title="${i18n.getMessage('lastName')}"><span <#if (!listTable.active)>style="text-decoration: line-through"</#if>>${(listTable.receipt.student.lastName)!}</span></@display.column>
		<@display.column title="${i18n.getMessage('firstName')}"><input type="hidden" name="ids" value="${listTable.cambridgeTest.id}"/><span <#if (!listTable.active)>style="text-decoration: line-through"</#if>>${(listTable.receipt.student.firstName)!}</span></@display.column>
		<@display.column title="${i18n.getMessage('dateOfBirth')}" style="text-align:center">${(listTable.receipt.student.dateOfBirth?date)!}</@display.column>
		
		<@display.column title="${i18n.getMessage('listening')}" style="text-align:center"><input name="listenings" value="${(listTable.cambridgeTest.listening)!}" style="text-align:center;width:50px"/></@display.column>
		<@display.column title="${i18n.getMessage('readingAndWriting')}" style="text-align:center"><input name="readings" value="${(listTable.cambridgeTest.reading)!}" style="text-align:center;width:50px"/></@display.column>
		<@display.column title="${i18n.getMessage('speaking')}" style="text-align:center"><input name="speakings" value="${(listTable.cambridgeTest.speaking)!}" style="text-align:center;width:50px"/></@display.column>
		
		<@display.column title="${i18n.getMessage('comment')}" style="text-align:center"><input name="comments" value="${(listTable.cambridgeTest.comment)!}" style="text-align:center;width:60px" onfocus="displayPopup('pages/study/newsletter.htm', this); return false"/></@display.column>
		<@display.column title="${i18n.getMessage('written')}" style="text-align:center">${(listTable.cambridgeTest.writtenScore)!}</@display.column>
		<@display.column title="${i18n.getMessage('oral')}" style="text-align:center">${(listTable.cambridgeTest.oralScore)!}</@display.column>
	</@display.table>
	
	<div style="text-align:center">
		<br/>
		<input type="submit" value="${i18n.getMessage('edit')}" class="button_style"/>
		<input type="reset" value="${i18n.getMessage('reset')}" class="button_style"/>
	</div>

</form>

<br/>